<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Examples</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
</head>
<body>
    <script>
    function Fangzi(){
    	this.woshi:"",
    	this.keting:"",
    	this.chufang:""
    }
    function Baogongtou(){
    	this.gaifangzi = function(){

    	}
    }
    function Gongren(){
    	this.jian_woshi = function(){
    		console.log("ok")
    	}
    	this.jian_keting = function(){
    		console.log("ok")
    	}
    	this.jian_chufang = function(){
    		console.log("ok")
    	}
    	this.jiaogong = function(){
    		var _fangzi = new Fangzi();
    		_fangzi.woshi = 'ok';
    		_fangzi.keting = 'ok';
    		_fangzi.chufang = 'ok';
    		return _fangzi;
    	}
    }
    var gongren = new Gongren();
    var baogongtou = new Baogongtou();
    var myfangzi = baogongtou.gaifangzi(gongren);
    console.log(myfangzi)
    </script>
</body>
</html>